package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.dto.NursingPlanSearchDTO;
import com.zzyl.entity.NursingPlan;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface NursingPlanMapper {

    Page<NursingPlan> search(NursingPlanSearchDTO dto);

    void insert(NursingPlan np);

    void update(NursingPlan np);

    @Select("select * from nursing_plan where id = #{id}")
    NursingPlan selectById(Long id);

    @Delete("delete from nursing_plan where id = #{id}")
    void deleteById(Long id);
}